﻿/*****************************************************************
* Project: HFW Framework
*****************************************************************
* Developer: Hdhoan
* Date created: 11/2010
* Modified:
******************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HFW.Share
{
    public delegate void StatusBarEventHandler(object sender, StatusBarEventArgs e);
    public class StatusBarEventArgs : EventArgs
    {
        private string _strStatusText;
        public string StatusText
        {
            get
            {
                return _strStatusText;
            }
            set
            {
                _strStatusText = value;
            }
        }

        public StatusBarEventArgs(string strValue)
        {
            _strStatusText = strValue;
        }
    }

    public delegate void DialogResultEventHandler(object sender, DialogResultEventArgs e);
    public class DialogResultEventArgs : EventArgs
    {
        private object _returnArgs;
        public object ReturnArgs
        {
            get { return _returnArgs; }
            set { _returnArgs = value; }
        }

        public DialogResultEventArgs(object objValue)
        {
            _returnArgs = objValue;
        }
    }

    public delegate void ReportPreviewEventHandler(object sender, ReportPreviewEventArgs e);
    public class ReportPreviewEventArgs : EventArgs
    {
        private BaseForm _reportForm;
        public BaseForm ReportForm
        {
            get { return _reportForm; }
            set { _reportForm = value; }
        }

        public ReportPreviewEventArgs(BaseForm objValue)
        {
            _reportForm = objValue;
        }
    }
}
